package server;

import server.commonData.User;

import com.core.initialize.Message;
import com.core.interfaces.IHandler;

/**
 * 游戏服务器业务处理类
 * @author King
 *
 */
public abstract class ServerHandler implements IHandler {

	@Override
	public void handler(Message msg) throws Throwable
	{
		User user= msg.getChannel().getCahceInfo();
		handler(msg, user);
	}

	protected abstract void handler(Message msg,User user) throws Throwable;
}
